package com.wecan.api.saasdata;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wecan.base.PO.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author liuzhihao
 * @Date 2022.04.09
 * @Version ${version}
 * @Description ${description}
 */
@FeignClient(name = "saasdata", path = "/exception")
public interface BusinessExceptionData {

    @PostMapping(value = "/add")
    int add(@RequestBody BusinessException businessException);

    @PostMapping(value = "/update")
    int update(@RequestBody BusinessException businessException);

    @PostMapping(value = "/selectpage")
    Page<BusinessException> selectPage(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestBody BusinessException businessException);
}
